﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TomNet.IMSC.Model.Infrastructure;

namespace TomNet.IMSC.Model.DbModels.Organization
{
	/// <summary>
	/// 管理员登录信息
	/// </summary>
	public class StaffLogin : CreatorBase<int>
	{
		/// <summary>
		/// 登录名
		/// </summary>
		[StringLength(50)]
		public string LoginName { get; set; }

		/// <summary>
		/// 登录密码
		/// </summary>
		[StringLength(50)]
		public string LoginPass { get; set; }

		/// <summary>
		/// 登录名类型（1、账号密码登录；2、QQ登录；3、微信登录）
		/// </summary>
		public int LoginType { get; set; }

		/// <summary>
		/// 状态（0：不可用；1：正常）
		/// </summary>
		public int State { get; set; }

		/// <summary>
		/// 管理员Id
		/// </summary>
		public int StaffID { get; set; }

		/// <summary>
		/// 验证码ID
		/// </summary>
		public int SMSCodeID { get; set; }

        /// <summary>
        /// Tolen
        /// </summary>
        [StringLength(200)]
        public string Token { get; set; }
    }
}
